Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add functionality to Ghommal's lucky penny #5686

Merged
merged 4 commits into from
Feb 19, 2024

Conversation

nwjgit
Copy link
Contributor

@nwjgit nwjgit commented Feb 12, 2024

Description:

"When equipped, it offers a 5% chance to not use a charge when using items that consume charges (such as jewellery and weapons)." https://oldschool.runescape.wiki/w/Ghommal%27s_lucky_penny

Changes:

  • Add a 5% chance to not use a charge when the user has Ghommal's lucky penny equipped.
  • Reduce amount of blood runes to charge scythe from 300 to 200 (This was implemented in-game osrs 17Jan24)

Other checks:

  • I have tested all my changes thoroughly.

@@ -297,6 +298,17 @@ export async function degradeItem({
const degItem = degradeableItems.find(i => i.item === item);
if (!degItem) throw new Error('Invalid degradeable item');

// 5% chance to not consume a charge when Ghommal's lucky penny is equipped
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If its a 5% percent chance, we should use percentChance(5)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Switched it to percentChance(5)

@gc gc merged commit 389747f into oldschoolgg:master Feb 19, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants